Replaced QUnit with Mocha tests for Karma