Use Diagnostic syntax constant in tests instead of literal.