buffer overflow bug fixed
delete useless tests