Implement update user and cover it with tests.