Change tests to the new s2dv_cube structure ad improve code

1 job for develop-new_s2dv_cube
in 36 seconds, using 0 compute credits, and was queued for 3 seconds