Added mocha and chai tests