fix owned str usage in test