Updated app.js to use configurable envs
Updated test to use configurable envs for testing