Renamed variable
Simplified test code
Corrected token auto-provisioning. Resolves #73