Improve errors class code coverage