Added functionality to the unit test testUser()