Small changes in testcases. Multiline support adopted from opentxs.