added test server/client for thread testing