Add pauseTest test helper

Adds a helper to pause a test.