Updated Transaction() constructor to require a String name. Also fixed some bugs with getItem() and added junit tests for them.