Added specs for getting token string and token object from a request.