add tests

add mocha and chai tests