refact init data testcase