Edge cases for match_first