#21462: assertNumQueries now prints queries executed on failure