Fix 'Too many connections' bug when all tests executed