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 possible to use `new BigInteger(s, 16).toByteArray()` instead?