test hooks