Tests running.

The test wait for a mock email to go out, and check if there's any error or was it actually sent.
You can avoid this by moving the test code into the render function. Render does not really need to be a spy. It will always be called after the mail is sent. So we can place the code that tests `flash.args` there.