Added test + fix for saving record when #update_attributes.

Fixes #27