tests: Extract tests for find_matches_in_lines