Factory to turn purchases into IOUs
Cleaning up some tests