test exception checking fixes; validation and output processing fixes