Test coverage for setTimeouts