index page test and view passing