add test for #2240