Improve mocha test for hHttp_out