Improving messages test

Since we create `Messages` class to handle messages and group it by severity, all tests must be moved to `MessagesTest` class. And I added a new tests to check if all messages are returned properly, by severity.
`ErrorListItem` was renamed to `MessageListItem` in this pull request. It's a inner class.