Check for leaked sessions in tests