add hook for debugging tests