Fix of the TestTree class. Basically it is refractoring. This is due to ...

...all access of the database object is moved from the Tree object to the HBaseClass and the input check is moved to TSDB. The serialization and deserialization will be changed soon to one more central hub.