Fixed MiddlewareRouter declaration in test require config. Added chai to package.json