test for #1170