(Re-)add tests for the loader.
When doing !11 (closed), 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.
Migrated from D770 (view on Phabricator)