Mocks for setTimeout and setInterval