more tests for exception handing