         @stream.on 'data', (data) ->
           fullData += data.toString()
         @stream.on 'end', =>
-          expect(fullData).to.be.eql @dummy.toString()
+          expect(fullData).to.have.string @dummyBody
           done()

        @stream.on 'data', (data) ->
          fullData += data.toString()
        @stream.on 'end', =>
          expect(fullData).to.be.eql @dummy.toString()
          done()

      it 'fails to read non success response', (done) ->

        key: fs.readFileSync './test/fixtures/server.key'
        cert: fs.readFileSync './test/fixtures/server.crt'
      , (req, res) =>
        res.writeHead 200, 'Content-Type': 'text/html'
        res.end @dummy

      @server.listen @port, @address

