Fix bug where change to count of 0 wasn't getting rendered. This involved writing some tests for the websocket server which was hairier than I wanted it to be.