Fixed api_test