fixed exception raises when running test if no settings.json present. (#147)

- prepare necessary configs before run app.js test.
fix npm run test failed (#146).
add travis configure.
Merge pull request #148 from g0v/feature/fix-#147

2 bug-fixes for testing and travis configure.