Added test for cse of Indexed instances