Adapt tests after changes in Test API.