Wrote tests for ContextPool.