Pass local flag to get_token() in get_token_or_user()

Should fix failing config tests
Add test for locally defined token
Use global rather than local token for sandbox creation
Directly write the config files for the get_token_or_user() tests
Merge pull request #85 from sbesson/test_fix

Test fix