enable tests in cmake
Cleanup of unused code and fix of unit test to reflect that accented chars are counted as two.