Test the steps for pausing a media element when removing from a document