Specify search layout for export email controller, provide a DRY method for getting search layout except on XHR and include test case for export email controller.