added test for correct handling of methods that raises excecptions