Added some error tests