add qrTest to generate qr in demo