Fixing test
Clear errors on index removal
Support Count() on json objects