[IMP] Add tests and transaction demo.