Default some configuration values, and warn
Use setImmediate rather than nextTick
Add auth test