Added RiakIndex tests and fixed off by 1 error