Add tests to extract_first()