Add test for #1320