diff test: reading a directory as a file need not error out