Add user config service in to server
Improve scenarios test
Improve middlewares code