Added file-layout tests.

Ported over file structure tests.
Merge pull request #58 from alicoding/issue45

Added file-layout tests.