Added Jparallel::map_with_index

- Also reorganized tests