Fix dateEqual error not showing right file in test reports

For #271