Test refactoring for main page