re-adding unit tests for CrudComponent