Testing retrieving token from client