Add tests for #5054

Authored by dterei on Nov 10 2011, 2:16 AM.