fix

fix bug in truncate
add testing script
add suggestion