Unit test for delay option for `animate`