Test for newMessage