initial Implementation and tests for pool manager