Add tests for counter and DatarResolver