tests(query): Adding query sync tests