Fix mocha tests not being able to fire