adds some tests for a full run of nsg and the express.js middleware
merge