cleans up server creation in tests, adds docs, makes storing the token string the default