Wrote test for and fixed updating user.