added unit test and modified message panel UI

+ added unit test for ConnectionManager
+ created separate class representing messages list's UI