improved and completed (with test cases) pool configuration