Add tests for pause and resume