Because QAP serializes special environments as XT_UNKNOWN, comparing to instances of Base/Empty/GlobalEnvironment will fail. This could be fixed by creating a(nother) special testing subclass that accepts either XT_UNKNOWN or something else (for regular serialization).