Added directory edit unit test.