test model error handlers