Testing hooks for fun and profit