public function test_batch_model_group() { $batch = App\Batch::find(1); $group = $batch->project_group->name; $this->assertNotNull($group); }