add tests for marshalled trees