test: Added log option tied to global debug value