test: add buttons.spec.js unit test, coverage 100%

add buttons.spec.js unit test, coverage 100%