be less picky with ENOENT errors in tests

closes #1580