Add test for GH-1277