fix bug in tester.py