add basic test for IntRangeIndexArrayTest
add test and fix bugs