Added signal handler unit tests