Fix UT failures for bit.ly

bit.ly stopped supporting qr code. This patch updates the code
accordingly.