XD-902: Properly close redis connection factory in tests