Added tests for index view