Added JUnit tests for Transaction and TransactionHistory