Corrected qDebug statements
Added test for #14045