fixed some bugs in the tests that lead to the folder hierarchy not being displayed properly