Test that socket upgrade works and socket is the right type.