Tests for the wrap_result functionality.