Properly serialize testcase object for downloading
Use platform.node() as default for clientid, if not specified