[tests] update test for with_