Add a per test timeout of 40 seconds.

If an individual test function takes longer than 40 seconds, raise an error.
Crude but effective.