Convert simpletest tests about jDaoFactory to PHPUnit tests