Cleanup the QrCodeTest code a bit