Removed hardcoded paths from tests, added directory listings and tests for it