fix pad/unpad bug
add pad/unpad test
Merge remote-tracking branch 'origin'