Fix dateEqual error not showing right file in test reports

For #271
Merge pull request #272 from alFReD-NSH/test-errors

Fix dateEqual error not showing right file in test reports