added test for index option