Checking syntax query tests. Found some errors in the tests