finished write testcase