test.h

Factored out the test framework. See notes in test.h and accept.c for
usage.