Factory_test