add test for #5238

Authored by simonmar on Nov 16 2011, 10:16 AM.