Generate errors for test automation