restructured error tests