Test more specifically for the expected error messages.