Create unit test for chunking over split dim. Bugfixes of a wrong line of code

1 job for develop-chunk_splitdim
in 82 minutes and 12 seconds, using 0 compute credits, and was queued for 6 seconds