Tests for fixPage and destructor added. frame replacement still requires testing.