Add test to check that we don't die when searching bad paths.