test for #1080