New tests for the factory method