Added tests for commands_test.go.
Better logging for servers.