Improve test coverage (errors)