Add region swapOut, beforeSwapOut

fixes #1718
`.not.to.have.been.called`