AppAccessToken and test refactored and working