Some unit tests for P2PServer.
More unit tests.