Added testing for UserController due to json