stubbed send_file in test; fixed email_controller to work in app