Writing tests using a fake mocha like test framework