add a small test for messages module