testing radius and diameter functions