Switch to real object equality operator in query_methods_spec