Clean up specs and remove redundant code
Rewrite spec helper for testing signals

Used a forking model instead of popen, based on a blog post of the same
topic.