Testadaption

The socket was never opened in the two tests.