[iOS] Unit testing on singleTransactionIndex + fix bug in json parse