fix exception in tester