Added test for #1341