Add assert of padding len > 0
Add test for expected value