Test Program(Factory Function Test)