Add test for #295.