add tests for matchDetails()