Added loging to server. Improved tester.