move start_test_api
fix some API test cases