Add tests to pages_controller#dispatch_email