add test code of ressampling