Add test file path as fallback in error reporting