Added test class for MessageParser