organize spent transaction methods and add test stubs