I think it might be more expressive to only compare the keys:

```ruby
assert_equal ["symbol", "bool", "number"], x.payload.keys
```