Add testcase for #8598

Authored by nomeata on Dec 9 2013, 4:14 AM.