make functional test passed with orm