add basic error tests