Changing the leaf tests. Moved tests into TSDB also some references for ...

...some tests. Remade the usage of how JSON object is parsed between storage and object, and object to storage
There is no zero copy at this level