global hook for test