Fixed silly timing error (expectations shouldn't clear the timeout).
Test hooks.