add sanity check
Add test for cyclic counter
headers