Fix: add global object to test condition with an object