fix buffer & test , timeout to be done

fix some debugs in buffer design , test & timeout to be done