fixed error tests