Binary search tree testing