Re #8023. Changing test to look for exceptions.