added Error tests