Index get/set and test