Added new test to verify email sent at email interval.
Added the concept of a test-mode.