There's no guarantee of the order of the two SEQUENTIAL blocks in this test.
You should probably roll them into one.

Or for that matter, the order of the 1st SEQUENTIAL block that creates path1/path2 and the OUTPUT(ds3)/OUTPUT(ds4) which depend on them.