engine: consider metadata when adding global unit to agents

Log will get triggered on *any* errors, which will create a lot of noise in the event that just a single test case fails. Could you just serialize the got/want logs into a single string and log it with the call to Errorf?