Create test hooks