Log message and test for it as suggested by @jtimberman