Added mocha tests and sqlite