update translate function.
update test.