Updating user API and tests