Add unit test for listTransactions