add convert function and get test case