tests for counter structure