Refactoring, less verbose output of tests.
Test printing of negotiation command, buffer size test.
Remove unused code.