[BUGFIX] max-width/height and min-width/height are not working when used in combination

* Fixes non-working element queries for combinated selectors (max and min-width)
* Adds unit test for this kind of element query
* Reverts changes of the applyElementQueries function in commit 0b7674b7a09411e16e8a107fd394b8749b14101c
* Removes very basic element queries integration tests, these tests have to be done in another way

Fixes #18