Fix failing test when debug = 1

Noticed this when trying to reproduce #145:

Assertions don't pass because core dbosources only return query logs when debug > 1.