Add spec test for last message.
Add spec test for messages.