Add more unit tests for ContextPool