add init function to test case