Changed Test type to generic

The type parameter defines the type of the fixture
Created function for fixture setup