Finishing touches, unit test for almost all functions which transact