Add test for new qr testing, remove trailing spaces