Updated unit test for transactionDetails