Fix API test