test for rendering index view