fix expected error message in test