Tests for crudcontroller