Fixing exception messages in test applications.