adding tests, fixed user update