fix lifetime issue with test case for ticket 6715.