added unit test for update user function