add more error tests