test: port to the latest version of API