Unit testing for downstream sync through websockets

This needs clarification, which I'll add.

The reasoning is that `request` returns the data as `data`, whereas stuff sent from a browser comes in as `data.data`. @gthomas can probably tell us more on this, since he's the one who discovered the bug.