added tests in testGetPutContents to also test subdirectories