Fixed bug in email tests that would cause them to fail if run at 23h UTC