Added exception tests to reach 100% coverage.