`jsonSerialize` should return an array or some other structure. In this test a `Elastica\Document` is serialized into a `Elastica\Document` which works but might be confusing.