added test cases for finally()