found there is an issue with timing in the tests due to app.on('end', cb)