test cater for randomly selected error message