fix tests for or-equals

by querying against ids the tests were producing false positives before