Test thread protection method