test directory initialization

add test coverage for getRoot and getInitialCwd

fix asylumfunk#26
Merge pull request #22 from asylumfunk/issue/26

test directory initialization