added basic functional tests to email wrappers