Fix names of stored variables in matrix export tests.