clone: add tests for output directory