Add createMessage tests