error tests