add a regression test for the messages bug