Added tests for Photo and QRCodeScanCondition

Also changed name from QRCodeCondition to QRCodeScanCondition (matches
now with class QRCodeScan) and fixed bugs in PhotoCondition and
QRCodeScanCondition