Added a test for the error warning publishing mechanism