Adding testing code for indexedrdd