unit test for crud builder