Add some unit tests for Charset.