Added error tests
Error tests added