Added tests for Index Controller.