Added exceptions to code coverage