Added getCode method to the AccessToken class. Moved the test helpers to global functions.