Additional test cases for exception handling