updates to dapp for the History support including the first pass at the unit test.