Added test for #5356