Added unit tests for the index action of home controller