Added unit testing with Karma, Mocha and Chai