Add test coverage for pkg/pools (#11588) Upstream-commit: 04a451998f28054972d5cd4c26082c4092a9dc35 Component: engine