New tests for module importing
Early exit + refactor findExtension