Update test.

Update test to use the new API.