Add region swapOut, beforeSwapOut

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