Fix test problem

[http://apidock.com/rails/ActiveRecord/RecordNotSaved](http://apidock.com/rails/ActiveRecord/RecordNotSaved)

> You may have this exception raised if any of the defined callbacks such as ActiveRecord::Base#before_save or ActiveRecord::Base#before_create return false.