Add test for updating record.