Enabeling unit test with exceptions