Oops, I forgot to add @Test.
Fix #1852
Issue #1852: Add test
Issue #1852: Rejig how we compare errors to ignore warnings normally.
Fix #1851
Issue #1851: Add a test