Added test for index_set feature. Extracted print statements into print
methods called for success/failure