Add test case for QBS-394.

Change-Id: I0c0d622f2c94750053d9a35f6aa90b8492465bbd
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>