Update test to match new API