Added some mocha tests