Adding mocha tests and beginning to work on the mongo integration