stop using deprecated api in the tests