Can we test this without using the internal property `data`?

Maybe check the result of `toJSON` or something?