(Re-)add tests for the loader.
When doing D682, I misunderstood how batching in the loader worked,
so I ended up making these tests useless.
This makes them do their job again, and tests more cases, such as
the threshold being reached.
It also makes the cascading more explicit by having more compact
and documented tests.