Verified the swapping of pages