implement and pass TDD test for top-matches