[api] try to set the fixture class earlier

I'm a bit puzzled that the test suite runs locally but not on travis, I can only
think of different seeds