don't load hooks if testing is enabled