Added more tests on exceptions