Cleans tests using assertNumQueries.