test case for readQR