move beforeAll handler into phrase_hook