better error tests