Set args to [] if nil in ExecuteScript, set Content-Type header, and add mock HTTP tests