Fix warnings from mocha

Fix test warnings coming from Mocha.