Fix delay method in queue plugin, it was executing functions twice. Fix dequeue as well. Added tests for promises in queue and animations