test for #397, something raises ModuleNotFound if we use Definition.type
catch ModuleNotFound for a special imports usage
ImportPath -> ImportWrapper