added more elaborate tests for userService