Add tests for error handling in TreeNode.tip_tip_distances