add tests for index page