Testing scheduled state change