Tests for new wrap_result behaviour.