fixes usage of PositionToken in tests