Fix failing test when debug = 1

Assertions don't pass when not in full debug mode because core dbosources don't return query logs.