change API tests according to newer version