Test: Added global debug option for quicker enabling/disabling of event emitters