Added abstract test with file and directory mock methods
Fixed multi-level folder structure issue, added test