changed loadfile code, errors to be reported as failed tests (simplifies error mechanism)