Ported over the last of the condition variable unit tests to the permit object.