Port test tests of CJK codecs.

https://github.com/ariya/phantomjs/issues/12439