test get_matches