Refactor AnimatorStartupTest to use Animator.onEnd instead of timeout