Add test suite for #8757

Authored by cactus on Feb 9 2014, 3:27 AM.