refactor the two test pages