Require mocha in test helper
Load yapi always, even if creating a new settings
Update and fix unit tests