Adding tests for .parent().
Fix bug in `parent` method

Ensure that the `parent` method operates over all elements in the set
and filters by the selector (when specified).