adding test for exception path