Wrote mocha wrapper macros and added tests.