added getUser method and test