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
Is it really necessary to use reflection here?