Add unit tests for object pool

This should be complete coverage of the new pool.Pool class.

Change-Id: I439e3d0adc4e370358db62573f862bf6caa8600f
Merge "Add unit tests for object pool"