update default option functions
add mocha test
update mocha test