Fixed broken test; added tests for POOL-240 (tests pass here).

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/pool/branches/1_5_RELEASE@1544942 13f79535-47bb-0310-9956-ffa450edef68