fix some of the test cases on translator