add test around parsing the token