Added tests for tokens.rb