fixed issue with the logging execution getting muddled up with remote execution
fixed test