Create tests for factories