Refactor pause and add test coverage