Ellipse symmetry

Fixed the #1153 and added several tests for ellipse.