add signal handler for tester