add my test and remove the useless code.