Adding sinon.
Adding getToken + unit tests