Syntax and I|O errors handling. Some tests