I don't like this approach. It would be more clear if you had a separate file for factories and one for the test base class instead of piling it all in a single generic file called "utils"