Access token database

Refactored the code according to the comments and added test cases.
Lines 26-29 are a code smell. Why is the initialization code for AccessToken outside the access token class.
Would it not make more sense to move this inside the access token constructor?