added testOnBorrow to recover broken connections