Refactoring using unittest

	modified:   queuemail.py
	new file:   test.py