add test & update padding.js's indentation