Add animation test and fix bug Animation in iOS.