unit tests for pool and corresponding fixes
add pragma no cover for Py3