tests added , missing errors handled