Wrote several tests for index view