test overriding query