implement update_attribute and update_attributes
tests for updating attributes