Changed test code to match new MailObserver code