refactor
add mocha, should for unit test