Converted autotest to mocha.