add midware unit test
Merge branch 'master' of https://github.com/vollov/connector-demo