Let the user choose whether to testOnBorrow or testOnReturn

Force testOnBorrow if neither is specified.
Properly close jedis connection in case of exceptions