Modified to be a wrapper around mocha test functions.