Use new api in method tests