simple error tests added