Adding tests to cover all xpath-related matching logic in NamedSelector