Added a test for correctMatches (#1350)