fix unit tests for index page refactor