tests for class hook runner.