Put all the socket/thread things inside a file to only have the test in the test file. (The server file could be reuse).