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

Added tests cover 100% of elements, that `NamedSelector` can match right now. Together with #438 it will convert `NamedSelector` into a class, that people can easily contribute to without risking in breaking any of xpaths by accident.

Fixes #437