update_attribute does not work nice in Mongoid.That's why it used here update_attributes.
This change throw NoMethodError: undefined method `__bson_dump__' for in tests.