Added tests for tokenlist.
TokenList is now debugged and tested.