Added test for #1316