Add tests for index page stuff