IndexingTestDb: count changes as the result of addToIndex/removeToIndex

This brings the test backend in accordance with the behavior of the
Redis backend.
Merge pull request #19 from Everyplay/bug/normalize-test-db

IndexingTestDb: count changes as the result of addToIndex/removeToIndex