Prepend exported variables in a trustedform structure
Add tests to ensure location is used if parent_location is null