     assert websocket_handle({:text, :subscribe_json}, :req, state) ==
       {:reply, {:text, :subscription_succeeded}, :req, state}
 
-    assert validate JSX
-    assert validate PusherEvent
-    assert validate Subscription
-    assert validate Event
+    assert validate [JSX, PusherEvent, Subscription, Event]
   end
 
   test "subscribe private channel event failing for bad authentication" do

  end

  setup do
    new PusherEvent
    new Authentication
    new Subscription
    new PresenceSubscription
    new Event
    new Time
    new JSX
    new SocketId
    new :gproc
    new :cowboy_req
    on_exit fn -> unload end
    :ok
  end


    assert websocket_init(:transport, :req, :opts) == {:ok, :req, nil}

    assert validate [:cowboy_req, PusherEvent]
  end

  test "websocket init using wrong app_key" do
