Split connection factory tests into own module