updated ModuleLocator to pass tests