Testing freeze-in with axial and vector Z′ bosons