Implemented pauseAnimationsForTesting + test.