Add new tests for transaction update
Also change existing tests to only check for relevant exceptions.
Don't allow assertRaises to be satisfied by NameError or other
exceptions that indicate that the test was not written correctly