Renamed split_rule_collection to split_multiline_rules_string in the unit tests and refactored to remove code duplication and provide more verbose context