add tests for app.js