fix test so that it gets id after flush