fix package and added test for indexes defaults and getters