Added unit tests for Locator and Loader.