Test for ExaminePage, fix two bugs it found.