add a test for --write-trace-to
Add tests for uploading json results.