[System] Tweak tests to work with Thread.Interrupt as well.