Add mocha.opts file and increase test-case timeout

Some of the existing tests are quite complex and take longer than the
default 2000ms timeout.