Added test 501 for multiple devices : still missing the actual splitting of the loop. It shows how the data-structures are used in case of splitting.