Use actual reserved word for test

I'm not away of `ON` being a reserved word in Lucene query
syntax. Given the original reporter mentioned `OR` I've updated the
test to use that.