bundle_trytes in the test case is formatted with trytes, which is extremely hard to understand. One needs to dig in to the reference code to know what this transaction is really about. For the convenience of the testers, there should be a formatter that transform a Json document into a trytes then call the according APIs.