add tests for `index` view