add ws translator test code