Test case for QTBUG-27678