         assert.deepEqual data, { users: ['silly_user', 'test_user'] }
         done()
 
-  it "should be able to get information for a user /:user", (done) ->
+  it "should be able to get information for a user", (done) ->
     client.get '/test_user', (err, req, res, data) ->
       assert.ifError err
       data.user.should.equal 'test_user'

        assert.deepEqual data.applications, ['example_app']
        done()

  it "should allow deletion of a user for the admin /:user", (done) ->
    client.get '/users', (err, req, res, data) ->
      assert.ifError err
      assert.deepEqual data, { users: ['silly_user', 'test_user'] }
      
      client.del '/users/test_user', (err, req, res, data) ->
        assert.ifError err
        client.get '/users', (err, req, res, data) ->

    ws.app.close()
    done()

  it "should show the version info", (done) ->
    client.get '/', (err, req, res, data) ->
      assert.ifError err
      data.name.should.equal "ios-ota"
      assert.notEqual data.version, undefined
      done()

  it "should allow new user creation for the admin", (done) ->
    client.post '/users/test_user', admin_creds, (err, req, res, data) ->
      assert.ifError err
      data.name.should.equal "test_user"
      data.secret.length.should.equal 16
      done()

  it "should be able to list users", (done) ->
    client.post '/users/silly_user', admin_creds, (err, req, res, data) ->
      assert.ifError err
      client.get '/users', (err, req, res, data) ->
