AUI-1276 Unit test for char counter module

This is a unit test for the CharCounter module, which had no tests up until now.