Added "total" test of db:aggregate()