Fix logging unit tests to accomodate for changes made previously
Add unit tests for server-connection module