Define alert in test to avoid upsetting the validator