Added destroy function to pthread_pool. Created general test