Introduce import_path method and add tests