fixed unit tests: mailing system, setup-teardown, importation