Sync fs after creating test file, print dir contents before checking for testfile