Add test for before_pause hook
Extract IO stubbing into test helper
Introduce IOAwaiter and mock for pause before hooks
Tweak "it" description
Use member variable for awaiter