add subtree_{init,up,diff} tests

Signed-off-by: Sebastien Varrette <sebastien.varrette@uni.lu>