Fix the failing test WaitForFinishingAnimation: adapted it to the behavior of iPhones