Add some tests for the functions that reorder the receive indices for the communication between GPUs.