fixed unit test; added test harness