remove unused code
add template for test api and test case
correct continue handler