Api test fix