Added integration test for counter scrub command and few other tests.
Fixes #21