Implemented random tree testing