Added test for #1026