Fix parseMessage() in tests