resource_pool: more unit tests (#2)