Refactor tests and code cleanup
Disable bulk email for XML-backed courses