Add test for maintenance mode.
Add mocha.opts.