add tests for expected layout of files in repo

References: #4914
Merge pull request #4948 from rolandwalker/test_repo_layout

add tests for expected layout of files in repo