Add test for GH-1103.