test formatJSON
more tests; that's everything but the async/sockets code
"formatJSON": toBe /= toEqual
tidier