Updated tests. Also fixed bug with pruning a typed tree where child users would be attached onto the the closest accesible node