#model test should return error if error