fix unit test so will work with connection pool of 1