made use of configuring settings in express
better structured testing