add tests to increase code coverage

added notes for necessary exception handling