unit testing for cmd edit (issue with unit test for time)