meaningful mocha tests

karma framework in place
mongodb lib / tests
working unit tests