Fix phactory test case