Updated test for change in API