Refactored data structure for transactions ...

Added tests for TransactionHistory
Added JUnit maven dependency