transactions: add [failing] fromJSON tests
index: fix fromJSON impl