Adding a unit test for object pool lambda behaviors