add unitTest and RotateAngle cmd