Added new test cases(DomainObjectFactoryTest.java)