Thread pool and test class for server