Add unit test for #1219