fixed api_test