IndexControllerTest Updated with mock login