Added a test for getUser