moved model/tests/db.js to tests/mongo.js
added lots of unit tests
added lots of unit tests