require('proof')(3, require('cadence')(prove))

function prove (async, assert) {
    var UserAgent = require('vizsla')
    var Reconfigure = require('../../reconfigure/http')
    var coord = {
        listen: function (url, callback) {
            callback(null)
        },

        unlisten: function (url, callback) {
            callback(null)
        }
    }
    var reconfigure = new Reconfigure(coord)
    var http = require('http')
    var server = http.createServer(reconfigure.dispatcher({}).server())
    var ua = new UserAgent, session = { url: 'http://127.0.0.1:8077' }
    async(function () {
        server.listen(8077, '127.0.0.1', async())
    }, function () {
        ua.fetch(session, async())
    }, function (body) {
        assert(body.toString(), 'Reconfigure API', 'index')
        session.url += '/register'
        session.post = { url: 'blegh' }
        ua.fetch(session, async())
    }, function (body) {
        assert(body.toString(), 'listener ' + session.post.url + ' has joined',
        'registered')
        session.url = session.url.replace('register', 'deregister')
        ua.fetch(session, async())
    }, function (body) {
        assert(body.toString(), 'listener ' + session.post.url + ' has left',
        'deregistered')
         server.close(async())
    })
}

@@ -802,22 +802,44 @@
     
-session.url +=
+ua.fetch(session, %7B%0A            url:
  '/r
@@ -846,16 +846,17 @@
 egister'
+,
 %0A       
@@ -860,22 +860,17 @@
     
-session.
+    
 post
- =
+:
  %7B u
@@ -891,32 +891,17 @@
         
-ua.fetch(session
+%7D
 , async(
@@ -974,32 +974,13 @@
 ner 
-' + session.post.url + '
+blegh
  has
@@ -1023,92 +1023,104 @@
     
-session.url = session.url.replace('register', 'deregister')%0A        ua.fetch(session
+ua.fetch(session, %7B%0A            url: '/deregister',%0A            post: %7B url: 'blegh' %7D%0A        %7D
 , as
@@ -1197,32 +1197,13 @@
 ner 
-' + session.post.url + '
+blegh
  has

Use Vizsla properly.