Added write test for destination directory