add tests for getUser