tidy up... added balanced transaction test