Fixed failing test due to API change