modifying tojson test because event wiring will hurt it