Added try catch block in CommandEditTest