added some tests improved test harness