Mocha and cha unit testing