Preserve wrapped test function's string representation for Mocah's BDD
interface.

Fixes issue 7339.