[BUGFIX] Various element queries are not applied correctly

* Replaces getTargetSelector-function
* Removes unused selector-normalizer
* Adds unit-test for getTargetSelector

Fixes #12