implement unit test for Key2String