Added checks against hanging tests and self-terminating tests
Merge pull request #5 from twolfson/bug/test.hanging

Added test timeout and self-terminating tests