update exception handling - Testing cases