add tests for userManager