using karma, mocha and chai