Added tests for printing transaction sets and handling optional and required elements as well as empty element contents.