timeout added

Time out added to test animateCallback.