Added assertion function to test harness