Fixed record's update op; added simple tests for it