Add spec for #481.
Force updating timeout when setTimeout is called, fixes #481.