add a test for #1057