[#1687] ticket:589 Add back fix for token creation in tests after revert
[#1687] ticket:589 Add back fix for token creation in tests after revert

lym/allura-git,lym/allura-git,apache/allura,apache/allura,heiths/allura,lym/allura-git,apache/allura,lym/allura-git,lym/allura-git,heiths/allura,heiths/allura,heiths/allura,heiths/allura,apache/allura,apache/allura