error tests added