Add pauseTest test helper

Adds a helper to pause a test.
I think this should be put out of the code sample, maybe `Example (the test will pause before clicking the button):`?