Added tests for loop and parallel chains