[WIP] base_import_connector test suite
[IMP] test suite with hopefully good coverage

Plus fix a harmless bug revealed by the test suite.