Fix bug in `parent` method

Ensure that the `parent` method operates over all elements in the set
and filters by the selector (when specified). Update documentation and
remove an invalid unit test.