Test that .search(..) returned a result before calling .groups()