Fixed incorret LoggerMessage::text() method.

Fixed LoggerMessage::text() appending text instead of setting it.

- Added tests for LoggerMessage.