Kludgy first migration of example code into testing framework.