Added Exception testing to all test cases