unit tests
Merge remote-tracking branch 'upstream/master'
more tests
mongodb tests code cleanup
pep8 fix
Merge pull request #496 from aelkikhia/master

Mongodb testing