Test hooks