convert the test cases
adopted the test cases