adds additional mocha tests and reinstates karma