Tests were not updated with latest API.

Fixed.