Add test suite for #8757