Test for #1094