Added some mocha tests.