intercepts the test timeout and calls assert