shim import to schema: fix #322 and add new test using dummy api