Refactored IndexPageTest to smaller methods.