Here’s your paragraph corrected and refined in British English: --- An HR team was testing an automatic off-boarding tool and accidentally triggered a ‘termination email’. The layoff email was sent to all 300 employees in the company, including the CEO, and the team later apologised for the mishap. The HR department had failed to switch to test mode.