adds tests for index view