Updated logging on server side. Fixed some test cases.