Added test for ensureLoaded Exception