change so that we pass in token, example saveSession in tests