Init the metadata manager in the loader test

If we are configured to use it, also use it in the test