Fix a bug of matching test results