added test for sliding counter