Fixing test for token credentials.