bcfg2-test: Move signal handler

Code was refactored such that this signal handler got put in the wrong
place during the revert.

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>