Fix random test failures caused by improper mocking of ObjectLoader
Description
The order in which elements are returned by ObjectLoader is very important, yet we have some tests mocking it by accepting elements in any order and always returning loaded objects in the same order.