Add test for #814