Change the TestScheduler property to be a lambda instead, so that we can leverage ThreadLocal<> to retrieve the value.