Adding some tests with exceptions