Cryogenic photonic testing and packaging