app.js fully tested