fix expected error message matching