adjust test to new apit