`toJSON()` only tests encoders, I'd like to assert more than that