Merged the signals and signals_regress test packages.

This patch also made the tests less likely to pollute the global state
in case of failure.