added test for #1276