Add tests for core BST functions