Added unit test for user edit controller.