Add an "onPrecheck" dispatcher for TestHandler and TestRunner.

This will fire before a test is evaluated, and aids in the setup of
certain custom asynchronous tests.

TestRunner's onPreheck is global across all handlers, while the TestHandler's
version only applies to itself.