Fix outerPos inaccessible in tests.