Moved main methods for client and servers to test classes. Added test for multi-threaded server.