properties: fix a memory leak in import code
trivial: fix error messages for tests