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.