add tests for import() interface, fixes