getAllMessages() is working, but there is no unit test to confirm that all corner cases are working properly