tests: Convert tests for signal handling to Autotest framework.