Added test without math.sqrt()