Added unit test for user edit action