added robustness checking to test harness