Declare and fix crud test