Loader: Fix unit tests.