Add test file path as fallback in error reporting (Fix #218)