Fixed Factory method

ified:   src/Factory/TestClass.java