Added tests.
Fixed tests of _import_wrapper