Add test for #1638