Added Api::getToken()
Added CachedClient::getInnerClient()
tests: refactoring