added test and code for removing a transaction