Bug 919370 - [Test][Keyboard] Unit test for Pinyin IME

- also modified the latin and suggest unit test to prevent the conflict of global variables
Merge pull request #13222 from luke-chang/919370_unit_test_for_pinyin

Bug 919370 - [Test][Keyboard] Unit test for Pinyin IME, r=rudylu