Correcting unit test bug since a.hash does not raise the same event as before.
Adding the old tree function to get the full stored system.