Initial test harness. Additional error handling code.