Implement test for GetAccessToken.
Add check security for tests.