Helper for counting an index
Add dropIndex test