Fixed Client->createInvoice, wrote tests to match