Tests for the counters/timers API.
More tests for capture scenarios.