domQueries: add tests for #395
DOMqueries: take context into consideration
Merge pull request #424 from macbre/dom-queries-context

Duplicated DOM queries: take context into consideration