added test for index template