Added test facility for binary trees