Fixes buffers not being added in the correct position, adds tests

parent 316d3e03
Pipeline #502 passed with stages
in 43 minutes and 11 seconds