Update test.
Don't use deprecated API.