Update the allow-query test to check for the new log messages. (cherry picked from commit a2bbe578bf)
a2bbe578bf