Unit test for preserving dir structure. [issue #3]