Less strict check in query_utils test. Closes #490.