Bug fixes, ITests for Index MR

Fixed bucket types, changed int to long for parameters, added ITests.