added test case for Model.updateAttributes