added throws Exception where missing on all test cases