added Karma testing with mocha framework and chai