some error tests added