refactor CrudTest.php