Revert "fixed logical bug on 2 specs in queryTests.js"

This reverts commit f80c168f395806a16a2844ea663c667526f7cdbd.