Errors test case, almost 100% coverage