using expectations to test whether the animation completes