added tests for updating a user