Add a unit test for transactions that are known to pass or fail; clean up of drawing code