fixed accounting of number of subscriptions with cassandra counters
unit test fixes