adapt tests to API changes