add test for ResourcePool.close