Fix test for new api