changed unit test code for tester