* Fix typo in Email module tests
Fix missing semicolon in tests for Email module causing PHPUnit to fail.
* Fix module test errors due to RedBean
Fix module tests causing error due to RedBean when being mocked in PHPUnit.
* Fix module test failures
Update module tests to fix failures, and remove obsoleted tests causing failure.