Affiliations tests
Accesstoken refactoring